約 5,420,646 件
https://w.atwiki.jp/kobapan/pages/77.html
Android SDKをダウンロードAndroid SDK | Android Developers $ tar zxf android-sdk_r16-linux.tgz $ sudo mv android-sdk-linux /opt/ $ cd /opt/android-sdk-linux/ $ ./tools/android update sdk --no-ui /etc/environmentにパス追加 PATH="$PATH /opt/android-sdk-linux/platform-tools" 追加したパスを反映させるために再起動 !注:追記2011-12-29 反映できてない。おかしい。cd /opt/android-sdk-linux/platform-tools して、./adb で使おう android 端末を接続 android本体の「アプリケーション」から、「開発」の中の「USBデバッグ」のチェックを選択 USBケーブルで、androidを接続 adb shell を起動 ディレクトリ platform-tools の adb をターミナル実行 android-sdk-linux_x86/platform-tools$ sudo ./adb start-server android-sdk-linux_x86/platform-tools$ ./adb shell adb server は必ず root 実行すること $ adb shell error insufficient permissions for device などエラーが出たら、一旦サーバーを kill して再起動 adb serverの停止は kill-server オプションをつける android-sdk-linux_x86/platform-tools$ adb kill-server
https://w.atwiki.jp/cataclyj/pages/250.html
このページは更新されていない非公式ビルドのページです。公式ビルドはAndroid版設定ガイドを参考にしてください。 (作成中です) 概要 ダウンロード 操作方法 パソコン版との相違点 概要 Michael Davies 氏による、0.C 開発版を元にした Android 向けの非公式ビルドです。 ダウンロード Google Play のページ 操作方法 パソコン版との相違点
https://w.atwiki.jp/anddoid/pages/47.html
android padding 要素 サイズ指定 関連タグ 使用例 android padding="10dp"
https://w.atwiki.jp/nozick/pages/4.html
スマートフォンやタブレットPCなどの携帯情報端末を主にターゲットとして開発されたプラットフォーム。 アプリケーション開発にはAndroid SDKが、ランタイムとライブラリーの開発用にはAndroid NDKが無償提供されている。 開発環境には統合開発環境のEclipseが推奨されている。IntelliJ IDEAなど他の統合開発環境にも対応している。 EclipseにADTプラグインとAndroidSDK等が最初から入ってるADT(AndroidDeveroperTools)が公式に公開されている。 IntelliJ IDEAベースのAndroidStudioが公式に公開されている。(公開されてそう経っていないので個人利用に留めるべきかと。公式も同様の見解。) Android開発手法 Java Native
https://w.atwiki.jp/kamiapp/pages/18.html
ファイラー ファイラー アプリ名 tetra filer URL https //play.google.com/store/apps/details?id=jp.main.brits.android.filer.app&hl=ja 一言 2.2以上で使えるが4.0.3以上で真の効果を発揮する
https://w.atwiki.jp/teematsu/pages/66.html
ソフト電子書籍 T-01C (REGZA Phone) S21HTから電話帳を移行 T-01C側の操作 S21HT側の操作 T-01C側の操作 T-01C (REGZA Phone) 2011/4/16 現在 2.1-update1 5011.1906.50 2.6.29-rel ftml-android@ftml #2 TER018 S21HTから電話帳を移行 S21HT( Touch Diamond)から電話帳をコピーする手順 T-01C側の操作 設定の[ワイヤレス]-[Bluetooth設定]-[Bluetooth]にチェック。また、[検出可能]にチェック。 検出可能状態は120秒後に自動解除されるので、解除される前に以下の作業を実施。 S21HT側の操作 連絡先一覧の画面で[メニュー]-[連作先の選択]-[すべて] その後、[メニュー]-[連絡先の送信]-[ビーム] 「ビームするにはデバイスを選択します。」の下に、10秒ほど待つとT-01Cが出現する。 T-01Cをタップ。 T-01C側の操作 ステータス領域左側にBluetoothアイコンが表示され、引き出すと、ファイルの受信を受諾するか聞かれる。 受諾をタップ。 連絡先がダウンロードされ、ステータス領域にダウンロード完了のアイコンが表示される。 連絡先が複数ある場合は連絡先の数だけ表示される。 ステータス領域を引き出し、「Bluetooth共有 xxx.vcfを受信済み」のうちの1個をクリックする。 クリックすると、連絡先の追加先の選択肢としてdocomo/gmailが表示される。docomoを選択。 続いて以下の選択肢が表示される。 vCardファイルを1つインポート 複数のvCardファイルをインポート すべてのvCardファイルをインポート 連絡先情報は、SDカード内にダウンロードされている模様。 SDカード内ダウンロードされた連絡先をすべてインポートするのであれば3番目を選択。 2番目を選ぶと、一覧が出て個別に選択できそう。 名前 コメント
https://w.atwiki.jp/aquosphonesh12c/pages/20.html
購入前FAQ AQUOS PHONE SH-12C の購入前によくある質問(FAQ)です。 購入後や機能のFAQはTips FAQ(購入後)を参照してください。 またgooスマホ部に訊け!などの質問サイトにも多くのQ Aが掲載されています。 購入前FAQ全般 電話・メール 3D関連 サービス関連 ハードウェア関連 ソフトウェア関連 ネットワーク関連 コメント 全般 オンライン取扱説明書 http //www.nttdocomo.co.jp/binary/pdf/support/trouble/manual/download/sh12c/SH-12C_J_OP_All.pdf なんでスマートフォンって、画面ロックがあるの? タッチパネルの誤作動を防ぐんだよ。 卓上ホルダは、付いていますか? クレードルはない。 フリック入力できる? 出来ます。 電話・メール 電話帳は、Android標準ですか?それともシャープが独自ですか? 後者 留守電機能ある? 標準で付いています。 3D関連 おっぱいは飛び出て見える? なかなか飛び出るよw 自分で撮った2D写真や3D動画を後から3Dに変換できる? 出来るが、あまり期待はするな YouTube 3D(yt3d)やワンセグ3Dも見れる? 3Dの動画の視聴も可能。 サービス関連 Flashコンテンツって再生できる? Android OS 2.3 では、Flash 10.1のフルバージョンに対応しています。 YouTubeやニコニコ動画って見られる? YouTubeやニコニコ動画はPC用サイトまたは専用アプリで見ることができます。 ドコモの料金案内みたいの見れないの? MyDocomoCheckerをインスコ。またはドコモマーケットの一番下のお客様サポート。 ハードウェア関連 ビデオカメラの撮影時間はバッテリーと容量以外で制限(時間とか)はある? こういう目安みたいですよ~ http //k-tai.sharp.co.jp/faq/search.shtml?act=faq model=191 bc=1000 mc=9264 sc=9252 qa=5259 ソフトウェア関連 スクリーンショット機能ある? ホームボタン押しながら電源ボタン押すと、スクショが撮れる。 ミュージックプレイヤー 対応フォーマット:WMA、MP3 ネットワーク関連 コメント ガラケの時に使ってたFOMAカードを差し込んだら契約更新しなくても使えるんですか? -- 名無しさん (2013-05-25 22 58 54) 名前 コメント
https://w.atwiki.jp/bill_kaigh/pages/18.html
iPhone向けのアプリを作ってみようかと思ったけど、MACが必要みたいなのでやめた。 そもそもアップルの製品を人生で一度も買ったことがない。 (ジョブズをそれほど信仰していないので・・・) iPhone持っていないのにiPhoneアプリ作っちゃダメだろ。 ということでAndroidアプリ作ってみる。 Androidアプリ開発の学習 Android Studio Android のホームページhttp //www.android.com/
https://w.atwiki.jp/android/pages/43.html
チュートリアル:ノートパッドエクササイズ1 本エクササイズではシンプルなノートリストを作ります。このノートリストを使ってユーザは新規ノートを追加することができますが、ノートの編集を行うことはできません。本エクササイズでは以下の事項をデモンストレートします。 ListActivities の基本、メニューオプションの作成・操作の基本 SQLite データベース内のノートへのアクセス/保存方法 ArrayAdapter (ListView にバインドするためのもっともシンプルな方法の一つ)を用いてデータを ListView にバインドする方法 リストビューの配置の仕方やアクティビティメニューへのアイテムの追加のやり方、アクティビティがアクティビティメニューアイテムをどのように扱うか、といったスクリーンレイアウトの基本 [エクササイズ1] [エクササイズ2?] [エクササイズ3?] [追加事項?] Step 1 Notepadv1 プロジェクトを開きます。 Notepadv1 は開始点として提供されるプロジェクトです - it takes care of some of the boilerplate work that you have already seen if you followed the Hello Android tutorial (すでにHello Android(もしもしアンドロイド)のチュートリアルで見ているかもしれませんが、共通する説明があります。) 2. browse ボタンを押し、あなたが本エクササイズをコピーしたフォルダを選択し、その中からNotepadv1を選んでOKを押してください。 a. Package Explorer で右クリックし、New- Project... を選択してください。 b. Android/Android Project を選択し、Next を押してください。 c. New Android Project のダイアログで、Create project from existing source(既存のソースからプロジェクトを作成)を選択してください. d. browse ボタンを押し、あなたが本エクササイズをコピーしたフォルダを選択し、その中からNotepadv1を選んでOKを押してください。 e. Project name 欄に Notepadv1、Location 欄に選択したパスが表示されることを確認してください。 f. Finish を押します。 g. 本エクササイズのプロジェクトが Eclipse の Package Explorer に開かれ準備が完了します。 h. もし AndroidManifest.xml にエラー表示が出ていたり、Android の zipファイルに関連する問題が表示された場合は、プロジェクトの上で右クリックし、ポップアップから、Android Tools- Fix Project Properties を選択してください。(プロジェクトがライブラリの場所を正しく見ていないので、この操作でそれを修復します。) Step 2 データへのアクセスと更新について このエクササイズにおいては、単にSQLiteデータベースを直接使ってデータを保存しますが、実際のアプリケーションでは正当なContentProviderを作成し、処理をカプセル化する方がずっと良いでしょう。 もし興味があれば、content provider やデータの保存/検索/表示などに関する情報をいろいろと見つけることが出来るでしょう。 DBHelper クラスを見てみてください - このクラスは、我々が作成するノートのデータを保持するとともにその更新も可能にする、SQLiteへのデータアクセスをカプセル化するために提供されています。 典型的にはContentProviderを用いることでこのクラスを実装します。そして実際、SDKには行っている完全なNotepadアプリケーションはそのようなContentProviderを実装しています。しかし、我々がこれからするように、単にSQLiteデータベースを直接利用していけない理由はありません。このクラスについて注意すべき重要なことは、それがSQLiteデータベースのデータの保存、参照、更新の詳細の面倒をみてくれるということです。全ての行を取得するメソッド、行IDに基づいて行を取得するメソッド、新しい行を作成するメソッド、既存の行を削除するメソッド、既存の行を更新するメソッドがあります。もしあなた自身のアプリケーションでSQLiteデータベースを利用する方法に関する入門を希望なら、このクラスを見てみるか、より良くは、ContentProviderの利用例として SDK の samples/ ディレクトリに入っている完全なNotepadアプリケーションを見てみてください。 Step 3 Layout と activity とについて ほとんどのActivityはそれに関連付けられたレイアウトを持っています。レイアウトはユーザに対してそのactivityの「顔」となります。今回の例では我々のレイアウトは画面全体を覆いノートの一覧を提供します。 しかし、フルスクリーンレイアウトはActivityにとっての唯一の選択肢ではありません。フローティングレイアウト(たとえばダイアログとか警告のように)が欲しいこともあるでしょうし、レイアウトを全く必要としないこともあるでしょう(使用するレイアウトを決めない場合、activityはユーザに見えなくなります)。 Open the notepad_list.xml file in res/layout and take a look at it This is a layout definition file with a default starting point in it, we have provided this as a convenience to get you going quickly. 1. All Android layout files must start with the XML header line ?xml version="1.0" encoding="utf-8"? . 2. Also, the next definition will often (but not always) be a layout definition of some kind, in this case a LinearLayout. 3. Note also that the xml namespace of Android should always be defined in the top level component or layout in the XML so that android tags can be used through the rest of the file xmlns android="http //schemas.android.com/apk/res/android" Step 4 We need to create the layout to hold our list. Add code inside of the LinearLayout tag so the whole file looks like this (you may have to hit the Source tab in order to edit the XML file) ?xml version="1.0" encoding="utf-8"? LinearLayout xmlns android="http //schemas.android.com/apk/res/android" android layout_width="wrap_content" android layout_height="wrap_content" ListView id="@id/android list" android layout_width="wrap_content" android layout_height="wrap_content"/ TextView id="@id/android empty" android layout_width="wrap_content" android layout_height="wrap_content" android text="@string/no_notes"/ /LinearLayout 1. The ListView and TextView can be thought as two alternative views, only one of which will be displayed at once. ListView will be used when there are notes to be shown, while the TextView (which has a default value of "No Notes Yet!" defined as a string resource, will be displayed if there aren t any notes to display). 2. The @ in the id strings of the ListView and TextView means that the XML parser should parse and expand the rest of the id string and use an ID resource. 3. And, the android list and android empty are IDs that are already provided for us by the Android platform, empty is used automatically when no data is provided in the list adapter. The List Adapter knows to look for these names specifically by default. Alternatively you could also choose to change the default empty view used by the List Adapter by using the setEmptyView(). More broadly, the android.R class is a set of predefined resources provided for you by the platform, while your project s R class is the set of resources your project has defined. Resources found in the android.R resource class can be used in the XML files by using the android name space prefix (as we see here). Step 5 Resources and the R class The folders under res/ in the Eclipse project are special. There is a specific structure to the folders and files under this folder. In particular, resources defined in these folders and files will have corresponding entries in the R class allowing them to be easily accessed and used from your application. Furthermore, they will be bundled and deployed as part of the application. To make a list view, we also need to define a view for each row in the list 1. Create a new file under res/layout called notes_row.xml. 2. Add the following contents (note again the xml header is used, and the first node defines the Android xml namespace) ?xml version="1.0" encoding="utf-8"? TextView id="@+id/text1" xmlns android="http //schemas.android.com/apk/res/android" android layout_width="wrap_content" android layout_height="wrap_content"/ 3. This is the view that will be used for each notes title row — it has only one text field in it. 4. In this case we create a new id called text1. The + after the @ in the id string indicates that the id should be automatically created if it does not already exist, so we are defining text1 on the fly and then using it. 5. After saving this file, open the R.java class in the project and look at it, you should see new definitions for notes_row and text1 (our new definitions) meaning we can now gain access to these from the our code. Step 6 Next, open the Notepadv1 class in the source. We are going to alter this class to become a list adapter and display our notes, and also allow us to add new notes Notepadv1 will be a subclass of Activity called a ListActivity, which has extra functionality to accommodate the kinds of things you might want to do with a list, for example displaying an arbitrary number of list items in rows on the screen, moving through the list items, and allowing them to be selected. Take a look through the existing code in Notepadv1 class. There are some constant definitions at the top, followed by a private field we will use to create numbered note titles, and some overrides of methods from the superclass. Step 7 Change the inheritance of Notepadv1 from Activity to ListActivity public class Notepadv1 extends ListActivity Note you will have to import ListActivity into the Notepadv1 class using Eclipse, ctrl-shift-O on Windows or Linux, or cmd-shift-O on the Mac (organize imports) will do this for you. Step 8 There are already three override methods defined onCreate, onCreateOptionsMenu and onOptionsItemSelected, we need to fill these out * onCreate() is called when the activity is started — it is a little like the "main" method for the activity. We use this to set up resources and state for the activity when it is running * onCreateOptionsMenu() is used to populate the menu for the activity. This is shown when the user hits the menu button, and has a list of options they can select (like "Create Note") * onOptionsItemSelected() is the other half of the menu equation, it is used to handle events generated from the menu (e.g. when the user selects the "Create Note" item). Step 9 Fill out the body of the onCreate() method. Here we will set the title for the activity (shown at the top of the screen), use the notepad_list layout we have created for the activity display contents, set up the DBHelper instance we will use to access notes data, then populate the list with the available note titles 1. call super() with the icicle parameter passed into our method 2. setContentView to R.layout.notepad_list 3. Create a new private class field called dbHelper of class DBHelper (before the onCreate method) 4. Back in the onCreate method, construct a DBHelper instance — assign to the dbHelper field (note, you must pass this into the constructor for DBHelper) 5. Finally, call a new method -fillData()- gets the data and populates it using the helper, we haven t defined it yet 6. onCreate() should now look like this @Override public void onCreate(Bundle icicle) { super.onCreate(icicle); setContentView(R.layout.notepad_list); dbHelper = new DBHelper(this); fillData(); } And remember to add the DBHelper field definition (right under the noteNumber definition) private DBHelper dbHelper; Step 10 More on menus The notepad application we are constructing only scratches the surface with menus. You can also add shortcut keys for menu items, create submenus and even add menu items to other applications!. Fill out the body of the onCreateOptionsMenu() method. We are going to add just one menu item for now, "Add Item", using a string we will create in strings.xml, and defined with a constant we will create at the top of the class to identify the Add Item operation. 1. In strings.xml resource (under res/values), add a new string for menu_insert with text "Add Item" string name="menu_insert" Add Item /string , then save the file 2. Also, you need a menu position constant at the top of the Notepadv1 class (right under the KEY_BODY definition) public static final int INSERT_ID = Menu.FIRST; 3. In the onCreateOptionsMenu() method, add the menu item. Also take care of the result of the super call being returned. The whole method should now look like this @Override public boolean onCreateOptionsMenu(Menu menu) { boolean result = super.onCreateOptionsMenu(menu); menu.add(0, INSERT_ID, R.string.menu_insert); return result; } Step 11 Fill out the body of the onOptionsItemSelected() method This is going to handle our new "Add Note" menu item. When this is selected the onOptionsItemSelected() method will be called with the item.getId() set to INSERT_ID (the constant we used to identify the menu item). We can detect this, and take the appropriate actions 1. The super.onOptionsItemSelected(item) method call goes at the end of this method — we want to catch our events first! 2. Switch statement on item.getId() 3. case INSERT_ID 4. calls new method createNote() 5. break at the end of the case 6. return the result of the superclass onOptionsItemSelected() method at the end 7. The whole onOptionsItemSelect() method should now look like this @Override public boolean onOptionsItemSelected(Item item) { switch (item.getId()) { case INSERT_ID createNote(); break; } return super.onOptionsItemSelected(item); } Step 12 Add a new createNote() method In this first version of our application, createNote() is not going to be very useful. We will simply create a new note with a title assigned to it based on a counter ("Note 1", "Note 2"...) and with an empty body. At present we have no way of editing the contents of a note, so for now we will have to be content making one with some default values 1. String noteName = "Note " + noteNumber++; (Construct the name using "Note" and the counter we have defined in the class) 2. Call dbHelper.createRow() using noteName as the title and "" for the body 3. Call fillData() method again after adding (inefficient but simple) 4. The whole createNote() method should look like this private void createNote() { String noteName = "Note " + noteNumber++; dbHelper.createRow(noteName, ""); fillData(); } Step 13 List adapters Our example uses a very simple array adapter which binds an array or list of items into a ListView. More commonly in Android, List Adapters go hand in hand with ContentProviders, and this is also a very easy way to use lists. To bind a ContentProvider to a ListView you can use a android.widget.SimpleCursorAdapter to bind data from a ContentProvider into a ListView Define the fillData() method. This is fairly long This method uses ArrayAdapter, which is the simplest way of putting data into a ListView. ArrayAdapter takes either a List or an array of Strings, and binds them into a text view provided in the layout defined for the list row (this is the text1 field in our notes_row.xml layout). The method simply obtains a list of notes from the database helper, constructs a List of Strings using the title strings from each row, and then creates an ArrayAdapter out of those items and bound to use the notes_row we defined. private void fillData() { // We need a list of strings for the list items List String items = new ArrayList String (); // Get all of the rows from the database and create the item list List Row rows = dbHelper.fetchAllRows(); for (Row row rows) { items.add(row.title); } // Now create an array adapter and set it to display using our row ArrayAdapter String notes = new ArrayAdapter String (this, R.layout.notes_row, items); setListAdapter(notes); } 1. ArrayAdapter needs a List of Strings (List String ) containing the items to display 2. The data is read out of the database as rows, and the title field from each row is used to populate the list of strings 3. We specify the notes_row view we created as the receptacle for the data 4. If you get compiler errors about classes not being found, ctrl-shift-O or (cmd-shift-O on the mac) to organize imports. Note that for this exercise we use an ArrayAdapter, this is not a very scalable solution and more typically a SimpleCursorAdapter would be used with a ContentProvider or at least a Cursor returned from a query. See the sidebar on List Adapters for more information. Step 14 Run it! 1. Right click on the Notepadv1 project 2. From the popup menu, select Run As - Android Application 3. If you see a dialog come up, select Android Launcher as the way of running the application (you can also use the link near the top of the dialog to set this as your default for the workspace, this is recommended as it will stop the plugin from asking you this every time) 4. Add new notes by hitting the menu button and selecting Add Item from the menu Solution and Next Steps You can see the solution to this class in Notepadv1Solution from the zip file to compare with your own. Once you are ready, move on to Tutorial Exercise 2 to add the ability to create, edit and delete notes. Back to the Tutorial main page...
https://w.atwiki.jp/anddoid/pages/43.html
android textSize 要素 関連タグ 使用例 android textSize="20sp"